package at.ac.univie.zsu.aguataplan.ui;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JButton;

/**
 * @author gerry
 * 
 */
public class ButtonClickAction extends AbstractAction {

	private static final long serialVersionUID = -2072335371532814683L;

	private JButton button;

	// ----------------------------------------------------
	// CONSTRUCTOR
	// ----------------------------------------------------

	public ButtonClickAction(JButton button) {
		this.button = button;
	}

	// ----------------------------------------------------
	// METHODS
	// ----------------------------------------------------

	public void actionPerformed(ActionEvent e) {
		button.doClick();

	}

}
